<template>
  <el-carousel :interval="5000" arrow="always">
    <el-carousel-item v-for="item in prop" :key="item.pic">
      <!-- <h3>{{ item }}</h3> -->
      <img class="carousel_img" :src="item.pic" alt="">
    </el-carousel-item>
  </el-carousel>
</template>
<script>
export default {
   props: ['prop'],
   data(){
     return {
         lunbo:[ 
        { _id: '5cda765302d4c2639c6a1900',
          pic:'http://demo-src.wpcom.cn/justnews/wp-content/uploads/sites/8/2017/04/s1.jpg',
          __v: 0 },
        { _id: '5cda766e02d4c2639c6a1901',
          pic:'http://demo-src.wpcom.cn/justnews/wp-content/uploads/sites/8/2017/04/s1.jpg',
          __v: 0 } ]
     }
   }
}
</script>

<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
  .carousel_img{
    width: 100%;
  }
</style>